<template>
  <div class="notification-card">
    <h2>{{ title }}</h2>
    <p>{{ desc }}</p>
    <button @click="handleAction">立即排查</button>
  </div>
</template>

<script setup>
import { ref } from 'vue'

const title = ref('Ubuntu资产遭遇高危反弹Shell攻击')
const desc = ref(
  'taomingwei-node3-ubuntu自2022年4月3日至2025年4月8日共遭受13次网络攻击，包括检测到Linux可疑命令和高风险的perl反弹shell事件。建议立即排查并采取措施防止进一步恶意活动。',
)

const handleAction = () => {
  // 这里可以添加具体的处理逻辑
  alert('正在开始排查...')
}
</script>

<style scoped>
.attack-notification {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.notification-card {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  width: 90%;
  max-width: 500px;
}

.notification-card h2 {
  color: #333;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.notification-card p {
  color: #666;
  line-height: 1.6;
  margin-bottom: 2rem;
}

button {
  background-color: #007bff;
  border: none;
  border-radius: 4px;
  color: white;
  cursor: pointer;
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #0056b3;
}
</style>
